<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>原型</title>
		<script>
		 
		Date.prototype.chinaFormatDate=function(){
			return this.getFullYear()+"年"+(this.getMonth()+1)+"月"+this.getDate()+"日"+this.getHours()+"时"+this.getMinutes()+"分";
		}
		 var d=new Date();
		 alert(d.chinaFormatDate());
		 //alert(d.getMonth());
		</script>
	</head>
	<body>
	</body>
</html>
